<!--  -->
<template>
  <div>
      <div v-for="(item) in dpjorder" :key="item.orderId" class="hjk">
          <span class="szic">订单号：{{item.orderCode}}</span>
  <van-card  :num="item.orderId" :price="item.orderGoodsPrice" :desc="item.goods.goodsDesc" :title="item.goods.goodsName" :thumb="item.goods.goodsImg">
  <template #tags>
    
    <van-tag plain type="danger">待评价</van-tag>
  </template>
  <template #footer>
    <van-button size="mini" @click="go(item.orderId,item.userId,item.goods.goodsId)">评价</van-button>
  </template>
        </van-card>
  </div>

      <div class="ddda" v-if="dpjorder.length==0">没有待评价的订单</div>
  </div>
</template>

<script>
export default {
name : 'Tobeevaluated',
data(){
return{
      dpjorder:[],
}
},

created(){
    let sess = JSON.parse(sessionStorage.getItem("user"))


this.$axios.post('/api/marketOrder/myOrderList?userId='+sess.userId+'&orderStatus=4').then((res)=>{
    this.dpjorder=res.data.data
    console.log("1")
    console.log(res.data.data)
    
  }).catch((err)=>{console.log("失败")})

}
  }
</script>

<style  scoped>
.szic{
    font-size: 13px;
}
.hjk{
    margin-top: 10px;
    box-shadow: 0 0 10px 10px #f2f2f2;
}
.ddda{
  color: #A2A2A2;
  font-size: 10px;
  text-align:center;
}

</style>
